<?php if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Index extends CI_Controller
{

    private $object;

    function __construct()
    {
        parent::__construct();
        $this->wb_akey = '529752950';
        $this->wb_skey = '97ecdce2daf60fbf543b4a66c258b81a';
        include_once(LIBPATH . '/WbOAuth.php');
        $this->object = new SaeTClientV2($this->wb_akey, $this->wb_skey, $this->session->userdata('token'));
        $this->object->debug = 0;
    }

    public function index()
    {
        $ms = $this->object->home_timeline(); // done
        $uid_get = $this->object->get_uid();
        $uid = $uid_get['uid'];
        $user_message = $this->object->show_user_by_id($uid);//根据ID获取用户等基本信息
        print_r($user_message);
    }
}